package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="DeptMajorLead"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class DeptMajorLead implements Serializable {

    /** identifier field */
    private Integer id;

    /** persistent field */
    private String deptCode;

    /** persistent field */
    private String majorLead;

    /** persistent field */
    private String leadType;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public DeptMajorLead(String deptCode, String majorLead, String leadType, String remark) {
        this.deptCode = deptCode;
        this.majorLead = majorLead;
        this.leadType = leadType;
        this.remark = remark;
    }

    /** default constructor */
    public DeptMajorLead() {
    }

    /** minimal constructor */
    public DeptMajorLead(String deptCode, String majorLead, String leadType) {
        this.deptCode = deptCode;
        this.majorLead = majorLead;
        this.leadType = leadType;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="Id"
     *             unsaved-value="0"
     *         
     */
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="DeptCode"
     *             length="9"
     *             not-null="true"
     *         
     */
    public String getDeptCode() {
        return this.deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    /** 
     *            @hibernate.property
     *             column="MajorLead"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getMajorLead() {
        return this.majorLead;
    }

    public void setMajorLead(String majorLead) {
        this.majorLead = majorLead;
    }

    /** 
     *            @hibernate.property
     *             column="LeadType"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getLeadType() {
        return this.leadType;
    }

    public void setLeadType(String leadType) {
        this.leadType = leadType;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="20"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
